<name>Biennor</name>
<profession>Trainer</profession>
<faction>Centaurs</faction>
<sellsat>10</sellsat>
<dialogue>
  <greeting>
    <reply>
      <text>Read the playing guide!</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <if><level>training</level></if>
      <text>I wish to train to the next level.</text>
      <npc>
        <reply>
          <if><hour>!9</hour></if>
          <text>The gymnasium opens at nine, [gender].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><hour>17</hour></if>
          <text>We don't accept entries after five in the afternoon, [gender].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><level>1</level></if>
          <text>I am sorry, but we cannot train beyond level 1 here.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!training</gold></if>
          <text>Alas, you cannot afford the fee.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><level>party</level></if>
          <text>Very good! Follow me, [name], if you please.</text>
          <script>
            <gold>training</gold>
            <level>1</level>
          </script>
          <return>main</return> 
        </reply>
        <reply>
          <text>Very good! Follow me, [name], if you please.</text>
          <script>
            <gold>training</gold>
            <days>7</days>
            <level>1|party</level>
          </script>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Are there alternative ways to improve our skills?</text>
      <npc>
        <reply>
          <text>All over Karigor there are the challenges, that will test you thoroughly. If you overcome, they give a boost to your skills. There may be other, more hidden ways as well.
Just never start a fight at a wedding. Believe me, I know.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>How high can we train?</text>
      <npc>
        <reply>
          <text>This is an ordinary gymnasium. We train everyone, in groups, but no higher than level 1. There are facilities elsewhere in Karigor that will take you further, if you can afford their prices.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Goodbye!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>